import request from '@/utils/request'

export function getCategoryList(data) {
  return request({
    url: '/category/app/list',
    method: 'post',
    data
  })
}
export function getCategoryListAll(data) {
  return request({
    url: '/category/app/listAll',
    method: 'get',
    data
  })
}

export function getCategoryDetail(params) {
  return request({
    url: '/category/app/getDetail',
    method: 'get',
    params
  })
}

export function updateCategoryDetail(data) {
  return request({
    url: '/category/app/update',
    method: 'post',
    data
  })
}

export function addCategoryDetail(data) {
  return request({
    url: '/category/app/create',
    method: 'post',
    data
  })
}
export function delCategoryDetail(params) {
  return request({
    url: '/category/app/del',
    method: 'get',
    params
  })
}
